<?php /* Smarty version 2.6.26, created on 2013-05-19 04:02:40
         compiled from topiclist.html */ ?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>	
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<body>
		<div id="center">
			<div id="title">帖子列表</div>
			<hr/><br/>
			<div>
				<?php unset($this->_sections['index']);
$this->_sections['index']['name'] = 'index';
$this->_sections['index']['loop'] = is_array($_loop=$this->_tpl_vars['topiclist']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['index']['show'] = true;
$this->_sections['index']['max'] = $this->_sections['index']['loop'];
$this->_sections['index']['step'] = 1;
$this->_sections['index']['start'] = $this->_sections['index']['step'] > 0 ? 0 : $this->_sections['index']['loop']-1;
if ($this->_sections['index']['show']) {
    $this->_sections['index']['total'] = $this->_sections['index']['loop'];
    if ($this->_sections['index']['total'] == 0)
        $this->_sections['index']['show'] = false;
} else
    $this->_sections['index']['total'] = 0;
if ($this->_sections['index']['show']):

            for ($this->_sections['index']['index'] = $this->_sections['index']['start'], $this->_sections['index']['iteration'] = 1;
                 $this->_sections['index']['iteration'] <= $this->_sections['index']['total'];
                 $this->_sections['index']['index'] += $this->_sections['index']['step'], $this->_sections['index']['iteration']++):
$this->_sections['index']['rownum'] = $this->_sections['index']['iteration'];
$this->_sections['index']['index_prev'] = $this->_sections['index']['index'] - $this->_sections['index']['step'];
$this->_sections['index']['index_next'] = $this->_sections['index']['index'] + $this->_sections['index']['step'];
$this->_sections['index']['first']      = ($this->_sections['index']['iteration'] == 1);
$this->_sections['index']['last']       = ($this->_sections['index']['iteration'] == $this->_sections['index']['total']);
?>
				<!--帖子分类-->
				<div class="topiclist_panel_type">					
					[<?php echo $this->_tpl_vars['topiclist'][$this->_sections['index']['index']]->getTopicTopicTypeName(); ?>
]
				</div>
				<!--帖子标题-->
				<div class="topiclist_panel_title">
					<?php echo $this->_tpl_vars['topiclist'][$this->_sections['index']['index']]->getTopicTitle(); ?>

				</div>
				<!--帖子内容-->
				<div class="topiclist_panel_content">
					<?php echo $this->_tpl_vars['topiclist'][$this->_sections['index']['index']]->getTopicContent(); ?>

				</div>
				<!--帖子作者-->
				<div class="topiclist_panel_auth">					
					<?php echo $this->_tpl_vars['topiclist'][$this->_sections['index']['index']]->getTopicUserName(); ?>

				</div>
				<!--帖子时间-->
				<div class="topiclist_panel_datetime">					
					<?php echo $this->_tpl_vars['topiclist'][$this->_sections['index']['index']]->getTopicDatetime(); ?>

				</div>
				<?php endfor; endif; ?>
			</div>
			<form action="topiclist.php" method="post">
				<div>
					<table style="width: 100%">
						<tr>
							<td style="width: 10%">
								<input type="submit" value="发帖"/>
							</td>
							<td style="width: 10%">
								
								<select name="topic_topictype_id">
								<?php unset($this->_sections['index']);
$this->_sections['index']['name'] = 'index';
$this->_sections['index']['loop'] = is_array($_loop=$this->_tpl_vars['topictypelist']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['index']['show'] = true;
$this->_sections['index']['max'] = $this->_sections['index']['loop'];
$this->_sections['index']['step'] = 1;
$this->_sections['index']['start'] = $this->_sections['index']['step'] > 0 ? 0 : $this->_sections['index']['loop']-1;
if ($this->_sections['index']['show']) {
    $this->_sections['index']['total'] = $this->_sections['index']['loop'];
    if ($this->_sections['index']['total'] == 0)
        $this->_sections['index']['show'] = false;
} else
    $this->_sections['index']['total'] = 0;
if ($this->_sections['index']['show']):

            for ($this->_sections['index']['index'] = $this->_sections['index']['start'], $this->_sections['index']['iteration'] = 1;
                 $this->_sections['index']['iteration'] <= $this->_sections['index']['total'];
                 $this->_sections['index']['index'] += $this->_sections['index']['step'], $this->_sections['index']['iteration']++):
$this->_sections['index']['rownum'] = $this->_sections['index']['iteration'];
$this->_sections['index']['index_prev'] = $this->_sections['index']['index'] - $this->_sections['index']['step'];
$this->_sections['index']['index_next'] = $this->_sections['index']['index'] + $this->_sections['index']['step'];
$this->_sections['index']['first']      = ($this->_sections['index']['iteration'] == 1);
$this->_sections['index']['last']       = ($this->_sections['index']['iteration'] == $this->_sections['index']['total']);
?>
								<option value="<?php echo $this->_tpl_vars['topictypelist'][$this->_sections['index']['index']]->getTopicTypeId(); ?>
"><?php echo $this->_tpl_vars['topictypelist'][$this->_sections['index']['index']]->getTopicTypeName(); ?>
</option>
								<?php endfor; endif; ?>
								</select>
							</td>
							<td style="width: 60%">
								<input name="topic_title" type="text" maxlength="256" style="width: 100%" />
							</td>
						</tr>
					</table>
				</div>
				<div>
					<?php echo $this->_tpl_vars['editor']->Create(); ?>

				</div>
			</form>
		</div>
	</body>
</html>